package com.lap.component.gateway.configure;

import com.lap.component.gateway.configure.entity.Security;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Slf4j
@Configuration
public class GatewayConfig {

  @Bean
  @ConfigurationProperties(prefix = "security.ignore")
  Security security() {
    Security security = new Security();
    log.info("Initializer security::{}", security);
    return security;
  }
}
